# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-gettext
_pkgname=gettext
pkgver=4.0
pkgrel=4
pkgdesc="Python implementation of Gettext"
url="https://github.com/hannosch/python-gettext"
arch="noarch"
license="GPL-3.0-or-later"
makedepends="py3-setuptools"
checkdepends="py3-tox py3-six"
source="$pkgname-$pkgver.tar.gz::https://github.com/hannosch/python-gettext/archive/$pkgver.tar.gz"
builddir="$srcdir/python-$_pkgname-$pkgver"

replaces="py-gettext" # Backwards compatibility
provides="py-gettext=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="b33786ddd32d5e6c31b062ea88131788f8ba68fcd40e2a519e433584b662f766fd866fc249bc77ae06174d133fbae63b0ef9acf45161ff7d79ceab893afde873  py3-gettext-4.0.tar.gz"
